<?php
defined("_ALLOW") or die ("Access denied");
?>
<?php
$header  = "index.php?module=com_frontpage";
global $lang;
global $maxwidthimage;
global $cfg_scale_widthproduct;
$catid = -1;
?>
<script language="javascript">
function GotoPage (page) {
	var url = "<?php echo $header; ?>";
	url = url + "&curPage=" + page;
	location.href = url;
}
</script>

<!----------------------PRODUCTS----------------------->
<?php
include_once("class/cproduct.php");
global $objproduct;
?>
<div class="td_listproduct_tt">
    <?php
	global $totalRows;
	global $cfg_scale_widthproduct;
  	$totalRows = $objproduct->CountFill("");
	if ($totalRows > 0) {
		$pagingcolumns = 2;
		global $maxRows;
		$maxRows = 50;
		global $maxPages;
		$maxPages = 5;
		include_once("common/paging.php");
		global $curPage;
		$paging = Paging_GetPaging();
		$beginrow = ($curPage-1) * $maxRows;
		global $array;
		$array = $objproduct->Doc_danh_sach("", $maxRows, $beginrow);
		$maxwidthimage = $cfg_scale_widthproduct;
		include("listproject.php");
		
		echo $paging;
	}
    ?>
</div>
